IF OBJECT_ID('ssf.dpnd_get_header_object_id') IS NOT NULL
	DROP FUNCTION ssf.dpnd_get_header_object_id
GO

CREATE FUNCTION ssf.dpnd_get_header_object_id (
	@dpnd_object_name NVARCHAR(256)
)
RETURNS INT
AS
BEGIN
	RETURN (
		SELECT header_object_id
		FROM ssf.dpnd_header_object WITH (NOLOCK)
		WHERE dpnd_object_name = @dpnd_object_name
	)
END
GO
